import { _decorator, Component, Node, Sprite } from 'cc';
import { Until } from './Until';
const { ccclass, property } = _decorator;

@ccclass('food')
export class food extends Component {
    start() {
        this.node.getComponent(Sprite).color = Until.getRandomColor();
        this.node.setPosition(Until.getRandomPos());
    }
}


